<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<jsp:include page="../head.jsp"></jsp:include>
<body>
<form id='fmTbFlowCompanyMiddle'  action="TbFlowCompanyMiddleServlet?method=${sessionScope.tbFlowCompanyMiddle==null?'add':'edit'}" method='post'>
<input type='hidden' name='flowCompanyMiddleId' id='flowCompanyMiddleId' value='${sessionScope.tbFlowCompanyMiddle.flowCompanyMiddleId }' />
<table>
<tr><td colspan='2'>&nbsp;</td></tr>
<tr>
    <td>公司编号</td>
    <td>
    <select  name='companyId' id='companyId' >
    	<option value="-1" selected >无</option>
    	<c:forEach items="${sessionScope.tbCompanyList==null?'':sessionScope.tbCompanyList}" var="tbCompany" varStatus="status">
    	<option value="${tbCompany.companyId }" ${sessionScope.tbFlowCompanyMiddle.tbCompany.companyId == tbCompany.companyId?'selected':''}>${tbCompany.companyName}</option>
    	</c:forEach>
    	</select>
    </td>
</tr>
<tr>
    <td>流程编号</td>
    <td>
    <select name='flowId' id='flowId' >
    <option value='0' selected >无</option>
	<c:forEach items="${sessionScope.tbFlowList==null?'':sessionScope.tbFlowList}" var="tbFlow" varStatus="status">
		<option value='${tbFlow.flowId}' ${tbFlow.flowId==sessionScope.tbFlowCompanyMiddle.tbFlow.flowId?' selected ':''} >${tbFlow.flowName}</option>
	</c:forEach>
    </select>
    </td>
</tr>
<tr>
    <td colspan='2' align="center"><input type="submit" name="btsubmit" id="btsubmit" value="${sessionScope.tbFlowCompanyMiddle==null?'添加':'修改'}" /><input type='reset' value='重置' /><input type='button' value='返回' onclick='history.go(-1);' /></td>
</tr></table>
</form><jsp:include page="../foot.jsp"></jsp:include>
</body>
</html>